package datastructure.searchtree;

import datastructure.common.Person;

import java.util.Comparator;

/**
 * @author cyt
 * @describe
 * @create 2020-12-17 21:48
 */
public class PersonComparable implements Comparator<Person> {

    @Override
    public int compare(Person o1, Person o2) {
        return o1.getAge() - o2.getAge();
    }
}
